<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterMobileExtData extends Migrator
{
    public function up()
    {
        $sql = <<<SQL
ALTER TABLE `mobile_order`
ADD COLUMN `ext_data`  varchar(255) NULL COMMENT '扩展信息' ;
SQL;
        $this->execute($sql);

    }

    public function down()
    {
        $this->table('mobile_order')
            ->removeColumn('ext_data')
            ->update();
    }
}
